Skip to content

Conversation

@imfeniljikadara
Copy link
Contributor

Closes #1579

This PR addresses issues with the air gap installation configuration, ensuring proper image names, unified command formats, and inclusion of the ClamAV service.

Changes

  • Fixed image names in docker-compose-offline.yml:
    • Changed scancodeio_web to scancodeio-web
    • Changed scancodeio_worker to scancodeio-worker
image: scancodeio-web
    networks:
      default: null
    volumes:
      - type: bind
        source: /etc/scancodeio/
        target: /etc/scancodeio
        bind:
          create_host_path: true
      - type: volume
        source: workspace
        target: /var/scancodeio/workspace
        volume: {}
      - type: volume
        source: static
        target: /var/scancodeio/static
        volume: {}
image: scancodeio-worker
    networks:
      default: null
    volumes:
      - type: bind
        source: /etc/scancodeio/
        target: /etc/scancodeio
        bind:
          create_host_path: true
      - type: volume
        source: workspace
        target: /var/scancodeio/workspace
        volume: {}
  • Unified worker command format:
    • Standardized command structure between docker-compose.yml and docker-compose-offline.yml
    • Updated verbosity level from 2 to 1
 command: wait-for-it --strict --timeout=120 web:8000 -- sh -c "
    ./manage.py rqworker --worker-class scancodeio.worker.ScanCodeIOWorker
                         --queue-class scancodeio.worker.ScanCodeIOQueue
                         --verbosity 1"
  • Added ClamAV service and configuration:
    • Added ClamAV service to docker-compose-offline.yml
    • Added corresponding volume configuration
    • Updated Makefile to include ClamAV in docker-images target
clamav:
    image: clamav/clamav
    networks:
      default: null
    restart: always
    volumes:
      - type: volume
        source: clamav_data
        target: /var/lib/clamav
        volume: {}
      - type: volume
        source: workspace
        target: /var/scancodeio/workspace
        volume: {}
  • Updated documentation:
    • Added note about ClamAV image in offline package
@docker save postgres redis scancodeio-worker scancodeio-web nginx clamav/clamav | gzip > build/scancodeio-images.tar.gz

Validation

  • Confirmed configuration validity using docker compose config
  • Verified that both configurations match except for expected differences (image vs. build)
  • Compared configurations using vimdiff as suggested in the issue

Notes

  • Unable to fully test build process due to architecture compatibility issues on ARM-based Mac
  • All configuration changes have been validated for syntax correctness

Related Issues

@imfeniljikadara imfeniljikadara force-pushed the fix-airgap-installation branch from 40d5ad6 to 861db36 Compare April 5, 2025 07:32
@imfeniljikadara imfeniljikadara marked this pull request as ready for review April 5, 2025 07:34
Fix formatting issue
@tdruez tdruez merged commit cb6f96c into aboutcode-org:main Jul 14, 2025
10 checks passed
@tdruez
Copy link
Contributor

tdruez commented Jul 14, 2025

@imfeniljikadara Thanks for your contribution! 👍

@imfeniljikadara
Copy link
Contributor Author

Thank you very much @tdruez for your review and merging the PR.

@imfeniljikadara imfeniljikadara deleted the fix-airgap-installation branch July 14, 2025 15:45
aayushkdev pushed a commit to aayushkdev/scancode.io that referenced this pull request Jul 21, 2025
…#1650)

* Fix air gap installation: update image names, unify worker command, and add clamav service

Signed-off-by: Fenil Jikadara <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Air gap installation requires update (docker compose)

2 participants